import os
def show_all_file(path):
    file_list = os.listdir(path)
    for item in file_list:
        # print(path+"\\"+item+"\\")
        new_path = os.path.join(path,item)
        if os.path.isdir(new_path): # 如果判断发现又是一个文件夹 继续遍历
            show_all_file(new_path)
        else:
            if new_path.endswith("mp4"):
                print(new_path)


file_path = r"D:\jiyun\2401A"
show_all_file(file_path)